.generate-arrow(@d) {
  .el-tooltip__popper.is-light {
    &[x-placement^="@{d}"] {
      .popper__arrow {
        border-@{d}-color: rgba(0, 0, 0, 0.03);
      }
    }
  }
  // .el-tooltip__popper.is-dark {
  //   &[x-placement^="@{d}"] {
  //     .popper__arrow {
  //       border-@{d}-color: @color-primary;
  //       &:after {
  //         border-@{d}-color: @color-primary;
  //       }
  //     }
  //   }
  // }
  .el-tooltip__popper.is-warning {
    &[x-placement^="@{d}"] {
      .popper__arrow {
        border-@{d}-color: #ff795c;
        &:after {
          border-@{d}-color: #ff795c;
        }
      }
    }
  }
}

.generate-arrow(top);
.generate-arrow(bottom);
.generate-arrow(left);
.generate-arrow(right);

.el-tooltip__popper {
  border-radius: 2px;

  &.is-light {
    background: #fff;
    border: none;
    box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.2);

    a {
      color: @color-primary;
      margin-left: 10px;
    }
  }

  &.is-dark {
    background: rgba(0, 0, 0, 0.75);
    box-shadow: 0px 6px 16px 0px rgba(0, 0, 0, 0.08);
  }
  &.is-dark2 {
    background: rgba(0, 0, 0, 0.8) !important;
    font-size: 12px;
    color: #ffffff;
    border-radius: 4px !important;
    padding: 4px !important;
  }
  &.is-warning {
    background: #ff795c;
    color: #fff;
  }
}

.el-tooltip {
  &.iconfont-handle:hover {
    color: @color-primary;
  }
}
